/ Assembly List / LJCNetCommon / LJCAssemblyReflect / SetPropertyInfo

Namespace - LJCNetCommon


Parameters
propertyName - The Property name.
fullName - The XMLDoc full name.

Returns

The PropertyInfo value.

Syntax

C#
public PropertyInfo SetPropertyInfo(String propertyName, String fullName = null)

Set the PropertyInfo reference. (RE)

Remarks

Sets the PropertyName property value and attempts to set the PropertyInfo property value if the type reference and the property exist.

Example

C#
using System;
using System.Reflection;
using LJC.Net.Common;

public PropertyInfo RetrievePropertyInfo(string assemblyFileSpec, string fullTypeName
    , string propertyName, string fullName)
{
    PropertyInfo retValue = null;

    // These calls are not required if an LJCAssemblyReflect reference is
    // used and the the following set methods have already been executed.
    LJCAssemblyReflect assemblyReflect = new LJCAssemblyReflect();
    Assembly assembly = assemblyReflect.SetAssembly(assemblyFileSpec);
    Type typeReference = assemblyReflect.SetTypeReference(fullTypeName);
    
    retValue = assemblyReflect.SetPropertyInfo(propertyName, fullName);
    return retValue;
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.